import 'dart:ui';

import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/cupertino.dart' hide Action;
import 'package:flutter/material.dart';

import '../global_store/state.dart';

class TextEditState implements GlobalBaseState, Cloneable<TextEditState> {
  TextEditingController contentEditController;
  FocusNode focusNodeContent;

  @override
  TextEditState clone() {
    return TextEditState()
      ..themeColor = themeColor
      ..userInfo = userInfo
      ..contentEditController = contentEditController
      ..focusNodeContent = focusNodeContent;
  }

  @override
  Color themeColor;

  @override
  Map<String, dynamic> userInfo;
}

TextEditState initState(Map<String, dynamic> args) {
  if (args == null) {
    args = {};
  }

  final TextEditState state = TextEditState()
    ..contentEditController = TextEditingController()
    ..focusNodeContent = FocusNode();

  return state;
}
